Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ui: Ensure we clean up javascript based DataSources #10915

Merged
merged 2 commits into from
Sep 27, 2021

Conversation

johncowen
Copy link
Contributor

@johncowen johncowen commented Aug 26, 2021

Continuation of #10835

DataSources added via javascript require cleaning up by assigning it to
an EventSource component in the template, otherwise the blocking query
can stick around when its no longer needed.

We also took the opportunity here to make this consistent with the rest
of the application.

  1. Don't use @model.
  2. Use our <Route /> component.
  3. Only use extra divs/spans specifically for styling only as a last resort.

@johncowen johncowen added theme/ui Anything related to the UI backport/1.10 labels Aug 26, 2021
@johncowen johncowen requested a review from kaxcode August 26, 2021 11:21
Copy link
Contributor

@kaxcode kaxcode left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@hashicorp-cla
Copy link

hashicorp-cla commented Sep 9, 2021

CLA assistant check
All committers have signed the CLA.

@johncowen johncowen changed the base branch from main to release/1.10.x September 22, 2021 17:37
@johncowen johncowen changed the base branch from release/1.10.x to main September 22, 2021 17:44
@johncowen johncowen force-pushed the ui/bugfix/clean-up-routing-config branch from 88624a2 to 234ea57 Compare September 22, 2021 17:48
@johncowen johncowen requested a review from a team as a code owner September 22, 2021 17:48
@vercel vercel bot temporarily deployed to Preview – consul September 22, 2021 17:48 Inactive
@johncowen johncowen changed the base branch from main to release/1.10.x September 22, 2021 17:48
@johncowen johncowen removed the request for review from a team September 23, 2021 07:56
@johncowen
Copy link
Contributor Author

This is now just for 1.10.x and is therefore currently waiting on #11127

DataSources added via javascript require cleaning up by assigning it to
an EventSource component in the template, otherwise the blocking query
can stick around when its no longer needed.

We also took the opportunity here to make this consistent with the rest
of the application.

1. Don't use `@model`.
2. Use our <Route /> component.
3. Use extra divs/spans specifically for styling only as a last resort.
@vercel vercel bot temporarily deployed to Preview – consul-ui-staging September 24, 2021 15:05 Inactive
@vercel vercel bot temporarily deployed to Preview – consul September 24, 2021 15:05 Inactive
@johncowen
Copy link
Contributor Author

Ok so #11095 and #11127 are now in a rebased here and the tests are now passing as expected. We don't need this fix on main as we have a better approach there for this overall, but it is still needed for 1.10.x.

Problem now is, I added a changelog to explain the change here, but the GH action (changelog-checker) is telling me I haven't 😭

Kinda wondering whether I should just bypass that and merge, will ask the team

@johncowen
Copy link
Contributor Author

Changelog is added here, we need to tweak the changelog-checker script slightly, which we'll do post merge.

@johncowen johncowen merged commit 8ef239f into release/1.10.x Sep 27, 2021
@johncowen johncowen deleted the ui/bugfix/clean-up-routing-config branch September 27, 2021 16:07
@hc-github-team-consul-core
Copy link
Contributor

🍒 If backport labels were added before merging, cherry-picking will start automatically.

To retroactively trigger a backport after merging, add backport labels and re-run https://circleci.com/gh/hashicorp/consul/457052.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
theme/ui Anything related to the UI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants